package com.bjpowernode.test01;

public class Task2 {
    public static void main(String[] args) {
        Product p1 = new Product("111111","小米11",1234.5);
        Product p2 = new Product("222222","红米12",1234.32);
        Product p3 = new Product("333333","华为mate18",23224.5);

        System.out.println("手机商品列表");
        System.out.println("商品编号|商品名称|单价");
        System.out.println(p1.id+"  "+p1.name+"  "+p1.price);
        System.out.println(p2.id+"  "+p2.name+"  "+p2.price);
        System.out.println(p3.id+"  "+p3.name+"  "+p3.price);
    }
}
